package com.pp.web.config;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;



/**
 * 测试Springboot用前缀匹配加入配置
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "test")
@Validated
public class PublicValue {

    @NotEmpty(message = "test")
    private String value;
}
